package com.leyou.comments.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import java.util.Date;

/**
 * @author 林琼杨
 * @version 1.0
 * @date 2020/5/29 11:28
 */
@Data
@Document(collection = "user_comments")
public class Comments {
    @Id
    private String _id;
    /**
     * 评论人
     */
    private String username;
    /**
     * 订单id
     */
    private Long orderid;
    /**
     * 商品id
     */
    private String spuid;
    /**
     *  用户id
     */
    private String userid;
    /**
     * 评论id
     */
    private String parentid;
    /**
     * 评论时间
     */
    private Date publishtime;
    /**
     *  评论内容
     */
    private String content;
    /**
     * 评论星级
     */
    private Integer type;
}
